package com.bluesky.jwf.component.list;

import com.bluesky.jwf.component.Component;

/**
 * this a default implementation, intend to do nothing
 * 
 * @author jack
 * 
 */
public class ListItem extends Component {

	private int index;
	protected Object model;

	protected ListView listView;

	@Override
	public void init(String html) {

		super.init(html);

		// locate the sub component or create anything you want.
	}

	public Object getModel() {
		return model;
	}

	public void setModel(Object model) {
		this.model = model;
		updateView();

	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public ListView getListView() {
		return listView;
	}

	public void setListView(ListView listView) {
		this.listView = listView;
	}

	public void updateView() {

	}
}
